
#include "res.h"
#include "manager.h"
#include "menu.h"
#include "change.h"

    //int num=0;
int main(){
    Node* list=NULL;
     int num=0;  
#if 0
   Stu s[SIZE]={
        {1,"张三",18,'m',78  ,78.5,76.4},
        {2,"李四",40,'m',45.5,67.5,78.5},
        {3,"王五",32,'m',34.5,78.6,97.5},
        {4,"马六",23,'m',67.4,78.5,56.6},
        {5,"刘七",18,'f',74.4,68.5,87.6}
    }; 
    for(int i=0;i<num;i++){
        add(&list,s[i]);
    } 
    xieFile(list); 
#else 
    duFile(&list);
#endif
     Node* test=list;
     while(test){
        num++;
        test=test->pNext; 
    }
    load();
    menu(num,list);
    /* showall(list);
    stuinput(num);
    showall(list); */
    //sss(list);
    
    //load();
    /*  char name [10];
    scanf("%s",name);
    Node* find=findNodeByName(list,name); 
    sss(find);*/
    
    //menu(num,list); 
    //showall(list);
     //gaimima();
    //del(&list,num);
    // xiugaiByName( list);
    //gai(  list,num);
     // paixu(&list);
    
    
    return 0;
}